#include "segythread.h"
#include "QDebug"
#include "QDateTime"
SegyThread::SegyThread()
{
    isRead= false;
}
SegyThread::SegyThread(QString fileName)
{

    this->fileName = fileName;
    SegyThread();
}
SegyThread::~SegyThread()
{

}

void SegyThread::run()
{


}

QList<QVector<QPointF> > SegyThread::getList()
{
    return list;
}

void SegyThread::setRead(bool isread)
{
    this->isRead = true;
}

void SegyThread::getData()
{


    list = segy->get_data(beginNum,endNum,acc);
    emit allFinish();
}

void SegyThread::setBeginNum(int beginNum)
{
    this->beginNum = beginNum;
}

void SegyThread::setEndNum(int endNum)
{
    this->endNum = endNum;
}

void SegyThread::setAcc(float acc)
{
    this->acc = acc;

}

void SegyThread::setFileName(QString fileName)
{
    this->fileName = fileName;
    segy = new Segy(fileName);

}

